from django.contrib import admin
from .models import Category,Tag
# Register your models here.

class CategoryAdmin(admin.ModelAdmin):
    list_display = ['name']
    list_filter = ['name']
    search_fields = ['name']
    list_per_page = 5

class TagAdmin(admin.ModelAdmin):
    list_display = ['name']
    list_filter = ['name']
    search_fields = ['name']
    list_per_page = 5

admin.site.register(Category, CategoryAdmin)
admin.site.register(Tag, TagAdmin)